﻿@model YHWE.Web.Models.manageUser

@{
    ViewBag.Title = "Edit";
}

<h2>员工管理</h2>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>编辑 </legend>
        <div class="editor-label">
            登录名
        </div>
        <div class="editor-field">
            @Model.loginname
        </div>
        <div class="editor-label">
           姓名
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.username)
            @Html.ValidationMessageFor(model => model.username)
        </div>
        <div class="editor-label">
            可用
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.able)
            @Html.ValidationMessageFor(model => model.able)
        </div>
        <p>
            <input type="submit" value="保存" /> | @Html.ActionLink("重设密码", "setPassword", new { id = Model.ID }) 
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("回列表", "Index") 
</div>